<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php 
if(!isset($title)){
	$title = "管理员界面";
}
@session_id(SID);
@session_start();
$_SESSION["browser"]=$_SERVER["HTTP_USER_AGENT"];



?>
<title><?php echo $title;?></title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="../css/Admin.css" rel="stylesheet" type="text/css" />
<link href="../css/<?php echo $css;?>" rel="stylesheet" type="text/css"/>
<script src="../js/Admintop.js" type="text/javascript"></script>
</head>
<body>
<div id="top">
<?php
    //如果尚未定义Passed对象，则将其定义为False，表示没有通过身份认证
    if(!isset($_SESSION['AdminPassed']))	
   {
		$_SESSION['AdminPassed'] = False;
	}	
  	if(!$_SESSION['AdminPassed'] ) {  
  		
?>
		<form action="login.php" method="post">
					<p>
						管理员账号:<input type="text" name="name"  autocomplete="off"/>
						密码:<input type="password" name="password"  autocomplete="off"/>
						<input type="submit" value="登录" />
					</p>
		</form>
				<?php 
				}else{
				?>
	<div id="hello">
	<form action="logout.php" method="post">	
 		<p>
 		<?php echo $_SESSION['Admin']["userName"];?>，欢迎管理员
 		<input type="submit" name="logout" value="退出" style="font-size: 12px;"/>
 		</p>		
 	</form>
	</div>
			<?php 
				}
			?>
	</div>
  	<div id="contain">
  		<div id="mainleftAdmin">
    	<div style="height:100%; float:left;">
    		<table>
        		<tbody>
        			<tr>
          				<td valign="top" width="270px" bgcolor="#131313">
     
         
  <div align="center">
  <p align="center"><a href="userList.php"><img src="../Image/AdminImage/huiyuanguanli.png" /></a></p>
  <p align="center"><a href="orderList.php"><img src="../Image/AdminImage/dingdanguanli.png" /></a></p>
  <p align="center"><a href="classifyList.php"><img src="../Image/AdminImage/fenleiguanli.png" /></a></p>
  <p align="center"><a href="productList.php"><img src="../Image/AdminImage/shangpinguanli.png" /></a></p>
  <p align="center"><a href="productAdd.php"><img src="../Image/AdminImage/tianjiashangpin.png" /></a></p>
  <p align="center"><a href="others.php"><img src="../Image/AdminImage/qitaguanli.png" /></a></p>
  <p align="center"><a href="modifyPwd.php"><img src="../Image/AdminImage/xiugaikouling.png" /></a></p>
  <p align="center"><a href="analyze.php"><img src="../Image/AdminImage/shengchengbaobiao.png" /></a></p>
  </div>   
     
      
 <table cellpadding="0" cellspacing="0" width="100%" bgcolor="#131313" border="0">
                <tbody>
                  <tr>
                    <td><img src="../Image/AdminImage/dl.jpg"/></td>
                    <td align="right"><img src="../Image/AdminImage/dr.jpg"/></td>
                  </tr>
                </tbody>
            </table></td>
        </tr>
              
      </tbody></table>
    </div>
  </div>
 <div id="mainrightAdmin" >
  <div id="mainright1">
<span style="color:orange;margin: 7px auto auto 30px;float:left;font-weight:bolder" ><?php echo $title?></span>
</div>	

